package com.luchi.svm;

import java.io.File;

public class LoadCategoryInfo {
	
	private static String catPath=Constants.ROOT_PATH;
	public static void  getCategory(){
		
		File file=new File(catPath);
		if(file.isDirectory()){
			File[]files=file.listFiles();
			for(int i=0;i<files.length;i++){
				File nFile=files[i];
				Constants.category.put(nFile.getName(), i+1);
				
			}
		}
	}

}
